﻿using System;
using System.Collections.Generic;
using System.IO;
using Windows.UI.Xaml.Media.Imaging;
using System.Linq;
using System.Windows.Input;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using Windows.Devices.Input;
using Windows.UI.Core;
using System.Threading;
namespace RoboRun
{
    class ScreenDimensions
    {
        public static float obtainScreenHeight()
        {
            var bounds = Window.Current.Bounds;
            return (float)bounds.Height;
        }

        public static float obtainScreenWidth()
        {
            var bounds = Window.Current.Bounds;
            return (float)bounds.Width;
        }

        public static void determineAspectRatio()
        {
            if (GameplayScreen.width / GameplayScreen.height == 1.6) //implies 16:10 aspect ratio
            {
                GameplayScreen.offset = 40 * GameplayScreen.height/ 800;
                GameplayScreen.trueIs16By9FalseIs16By10 = false;
            }
            else
            {
                GameplayScreen.offset = 0;
                GameplayScreen.trueIs16By9FalseIs16By10 = true;
            }
        }
    }
}
